﻿<UserControl x:Class="MediaAssistant.Controls.MovieMiddlePanel.MovieMiddlePanelView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:cal="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation"
             xmlns:UserControls="clr-namespace:MefBasic.UserControls;assembly=MefBasic" 
             xmlns:Constants="clr-namespace:MediaAssistant.Constants" 
             Background="{DynamicResource BodyBackground}">
  <DockPanel>
    <Border DockPanel.Dock="Top" Background="{DynamicResource HeaderGradientBackground}">
      <ItemsControl cal:RegionManager.RegionName="{x:Static Constants:MediaAssistantRegionNames.MovieMiddleToolBar}">
        <ItemsControl.ItemsPanel>
          <ItemsPanelTemplate>
            <StackPanel Orientation="Horizontal"/>
          </ItemsPanelTemplate>
        </ItemsControl.ItemsPanel>
      </ItemsControl>
    </Border>
    <DockPanel DockPanel.Dock="Bottom">
      <UserControls:CollapsibleContainer Name="CollapsibleContainer" DockPanel.Dock="Right" Direction="LeftToRight" Margin="0,0,10,0">
        <UserControls:CollapsibleContainer.Child>
          <DockPanel Width="300">
            <ContentControl DockPanel.Dock="Top" cal:RegionManager.RegionName="{x:Static Constants:MediaAssistantRegionNames.MovieActionToolBar}"/>
            <ContentControl DockPanel.Dock="Bottom" cal:RegionManager.RegionName="{x:Static Constants:MediaAssistantRegionNames.MovieDetailPanel}"/>
          </DockPanel>
        </UserControls:CollapsibleContainer.Child>
      </UserControls:CollapsibleContainer>
      <Border DockPanel.Dock="Left">
        <ContentControl cal:RegionManager.RegionName="{x:Static Constants:MediaAssistantRegionNames.MovieResultResion}"/>
      </Border>
    </DockPanel>

  </DockPanel>
</UserControl>
